<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // setInterval(function () {
    //   console.log('111')
    // }, 1000)
    function fnc() {
      console.log('123')
    }
    setInterval(fnc, 1000)
  </script>
</body>

</html>